﻿namespace Game
{
    public class ComponentMoney : ComponentInventoryBase
    {
        public int RemainsSlotIndex => SlotsCount - 1;

        public override int GetSlotCapacity(int slotIndex, int value)
        {
            if (slotIndex == RemainsSlotIndex)
            {
                return 0;
            }

            return base.GetSlotCapacity(slotIndex, value);
        }
    }
}